
import { purchaseWorkPlaceRouter } from './components/purchaseWorkPlace'
import { contractManageRouter } from './components/contractManage'
import { purchaseQuickOrderRouter } from './components/purchaseQuickOrder'
import { purchaseApplyRouter } from './components/purchaseApply'
import { orderManageRouter } from './components/orderManage'
import { reciveMaterialsManageRouter } from './components/reciveMaterialsManage'
import { paramsSettingRouter } from './components/paramsSetting'

import { useI18n } from '@/hooks/web/useI18n'

const { t } = useI18n()
export const purchaseRouter =  {
    path: 'Purchase',
    component: () => import('@/components/MenuPage/MenuPage.vue'),
    name: 'Purchase',
    meta: {
      title: t('router.purchase.purchase'),
      alwaysShow: true
    },
    children: [
        purchaseWorkPlaceRouter,
        purchaseQuickOrderRouter,
        purchaseApplyRouter,
        contractManageRouter,
        orderManageRouter,
        reciveMaterialsManageRouter,
        paramsSettingRouter
    ]
}